package day3;

import java.util.Date;

/**
 * @author oldliu
 * @since 1.0
 */
public class DateTest {
    public static void main(String[] args) {
        Date d=new Date(0L);
        System.out.println(d);
        Date d2=new Date();
        System.out.println(d2);
        System.out.println(d2.getTime());
        System.out.println(System.currentTimeMillis());
        System.out.println("年："+d2.getYear());
        System.out.println("月:"+d2.getMonth());
        System.out.println("几号："+d2.getDate());
    }
}
